package com.fisionlabs.analizer.chain.link;

import com.fisionlabs.queue.PacketQueue;

import jpcap.packet.ARPPacket;
import jpcap.packet.Packet;

public class ARPLink extends PacketLink{
	public ARPLink(){
		
	}

	@Override
	public boolean action(Packet packet) {
		if (packet instanceof ARPPacket) 
		{
			System.out.println("ARP Packet");
			ARPPacket arpPacket = (ARPPacket)packet;
			PacketQueue.getInstance().addPacket(arpPacket);
			return true;
		}
		else
			if (next != null) 
				next.action(packet);
		
		return false;
	}	
}
